package com.caine.order.controller;

import com.caine.common.entity.R;
import com.caine.order.service.IOrderService;
import com.caine.order.vo.OrderVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author   V   
 * @since 2021-01-04
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    IOrderService orderService;

    @RequestMapping("create")
    public R create(@RequestBody OrderVO vo){
        return orderService.createOrder(vo);
    }

}
